package com.study.demo.delegate;

import java.util.Map;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

public class GetVarJavaDelegate implements JavaDelegate {

	public void execute(DelegateExecution execution) {
		Map<String, Object> vars = execution.getVariables();

		for (Map.Entry<String, Object> entity : vars.entrySet()) {
			String key = entity.getKey();
			Object value = entity.getValue();
			System.out.println("============获取流程变量：【key:" + key + "】,【value:" + value + "】============");
		}

	}

}
